import request from "@/utils/requestJava.js"

export default {
	/**
	 * 获取所有的司机物流
	 */
	async selectAll() {
		return await request({
			url: "/api/logistic/selectAll",
			data: {},
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},
	
	/**
	 * 获取物流数据
	 * @param {Object} data
	 */
	async getLogisic(data){
		return await request({
			url:"/api/logistic/getLogisic/"+data,
			method:'GET',
			contentType:2,
			channel:2
		})		
	},	
	
	/**
	 * 保存物流
	 */
	async saveLogistic(data) {
		return await request({
			url: "/api/logistic/add",
			data: data,
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},

	/**
	 * 物流订单列表
	 */
	async getLogisticOrderByTabChange(data) {
		return await request({
			url: "/api/order/getLogisticOrderByTabChange",
			data: data,
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},	
	
	/**
	 * 物流订单列表
	 */
	async getTotal(data) {
		return await request({
			url: "/api/logistic/getTotalByCondition",
			data: data,
			method: 'POST',
			contentType: 2,
			channel: 2
		})
	},		
}